package com.example.petshop.service;

import com.example.petshop.entity.Goods;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

@Service
public interface GoodsService {
    List<Goods> getAll();

    Optional<Goods> getById(Integer goodsId);

    List<Goods> getGoodsByShopId(Integer shopId);

    void updateState(Integer goodsId,Integer state);

    List<Goods> getByState(int state);

    void createGoods(Goods goods);

    void deleteGoods(Integer goodsId);

    void updateGoods(Goods goods);

    List<Goods> getGoodsByCategory(String category);

    Goods getGoodsByName(String orderName);
}
